package 第七章.threadExceptionMove;

public class Run1 {

	public static void main(String[] args) {
		MyThread myThread = new MyThread();
		// 对象
		myThread.setUncaughtExceptionHandler(new ObjectUncaughtExceptionHandler());
		// 类
		MyThread.setDefaultUncaughtExceptionHandler(new StateUncaughtExceptionHandler());
		myThread.start();
	}
}
